using System;
using FytSoa.Common.Utils;
using System.ComponentModel.DataAnnotations;
using FytSoa.Domain.Car;
using FytSoa.Domain.User;
using SqlSugar;

namespace FytSoa.Application.Car;

/// <summary>
/// 
/// </summary>
public class CarsPrizelogDto
{
    /// <summary>
    /// 唯一编号
    /// </summary>
    public long Id { get; set; }

    /// <summary>
    /// 用户编号
    /// </summary>
    [Required]
    public long UserId { get; set; }

    /// <summary>
    /// 奖品ID
    /// </summary>
    [Required]
    public long PrizeId { get; set; }
    
    /// <summary>
    /// 奖品信息
    /// </summary>
    public string PrizeInfo { get; set; }

    /// <summary>
    /// 发放状态
    /// </summary>
    [Required]
    public bool Status { get; set; } = false;

    /// <summary>
    /// 中奖时间
    /// </summary>
    [Required]
    public DateTime CreateTime { get; set; }=DateTime.Now;

    /// <summary>
    /// 用户信息
    /// </summary>
    public Member User { get; set; }
    
    /// <summary>
    /// 奖品信息
    /// </summary>
    public CarsPrize Prize { get; set; }

}